package cn.edu.zut.soft.student.model;

import java.util.Date;

public class Teacher {
    private String teacherid;

    private String password;

    private String teachername;

    private String sex;

    private Date workdate;

    private String telephone;

    private String email;

    private String address;

    private String teachcoursename;

    public Teacher(){}

    public Teacher(Object[] values) {
        this.teacherid = values[0].toString();
        this.password = values[1].toString();
        this.teachername = values[2].toString();
        this.sex = values[3].toString();
        this.workdate = (Date) values[4];
        this.telephone = values[5].toString();
        this.email = values[6].toString();
        this.address = values[7].toString();
        this.teachcoursename = values[8].toString();
    }

    public String getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(String teacherid) {
        this.teacherid = teacherid == null ? null : teacherid.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getTeachername() {
        return teachername;
    }

    public void setTeachername(String teachername) {
        this.teachername = teachername == null ? null : teachername.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Date getWorkdate() {
        return workdate;
    }

    public void setWorkdate(Date workdate) {
        this.workdate = workdate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone == null ? null : telephone.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getTeachcoursename() {
        return teachcoursename;
    }

    public void setTeachcoursename(String teachcoursename) {
        this.teachcoursename = teachcoursename;
    }
}